/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package td4;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 *
 * @author ?
 */
public class CommunicaTcpServer {
    
public static void main(String[] arg) {
		int portEcoute = 10302;
		ServerSocket mon_sock;
		Socket socket;

		try {
			mon_sock = new ServerSocket(portEcoute);
			while(true) {
				socket = mon_sock.accept();
	 			new Communica(socket);
			}
		}
		catch(IOException exc) {
	 		System.out.println("probleme de connexion");
		}
	}
    }
    

